package ipad.asia.dao;

import ipad.asia.entity.PunishEnterprise;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PunishEnterpriseDao extends JpaRepository<PunishEnterprise,Long> {
    /**
     * 一般投诉是投诉店铺的
     * @return
     */
List<PunishEnterprise> findByEnterpriseId(int enterpriseId);
List<PunishEnterprise> findByShopId(int shopId);

}
